package tpoo.common.services.exceptions;

import org.springframework.beans.factory.NoSuchBeanDefinitionException;

public class ServiceException extends Exception {

	
	
	private Exception exception;

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public ServiceException(Exception exception) {
		this.exception = exception;
	}

	@Override
	public String getMessage() {
		return "Exception wrapped" + this.getException() + " ~> "
				+ this.getException().getMessage() + "/"
				+ this.getException().getCause();
	}
}
